function sendMessage1(name) {
  return new Promise((resolve, reject) => {
    console.log(
      `邓哥 -> ${name}: 最近由谣言说我喜欢你，我要澄清一下，那不是谣言`
    );
    console.log(`等待${name}回复......`);

    setTimeout(() => {
      if (Math.random() <= 0.5) {
        resolve(`${name} -> 邓哥：我是九，你是三，除了你还是你`);
      } else {
        reject(`${name} -> 邓哥：你是个好人`);
      }
    }, 100);
  });
}

sendMessage1("李建刚")
  .catch((reply) => {
    console.log(reply);
    return sendMessage1("abc");
  })
  .catch((reply) => {
    console.log(reply);
    return sendMessage1("zzz");
  })
  .catch((reply) => {
    console.log(reply);
    return sendMessage1("bbb");
  })
  .then(
    (data) => {
      console.log(data);
      console.log("成功");
    },
    (reply) => {
      console.log(reply);
      console.log("失败");
    }
  );
